package com.cmc.cloud.cmclink.doc.controller.admin;

import com.cmc.cloud.cmclink.doc.constants.UrlConstants;
import com.cmc.cloud.cmclink.doc.service.FineReportUrlService;
import com.cmc.cloud.cmclink.doc.vo.finereporturlvo.FineReportUrlReqVO;
import com.cmc.cloud.cmclink.doc.vo.finereporturlvo.FineReportUrlRespVO;
import com.cmes.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 帆软url处理
 *
 * @author wzb
 */
@Tag(name = "管理后台 - 帆软url获取")
@RestController
@Validated
@RequestMapping(UrlConstants.APPLICATION_URL+"/fineReportUrl")
public class FineReportUrlController {
    @Resource
    private FineReportUrlService fineReportUrlService;

    @Operation(summary = "获得帆软url")
    @PostMapping("/process-url")
    public CommonResult<FineReportUrlRespVO> processReportUrl(@RequestBody FineReportUrlReqVO reqVO) {
        FineReportUrlRespVO result = fineReportUrlService.processUrl(reqVO);
        return CommonResult.success(result);
    }


}
